


<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加菜单</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">上级菜单</label>
    <div class="layui-input-inline" id="menuSelect">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">资源类别</label>
    <div class="layui-input-inline" >
      <select name="type" lay-filter="typeSelect">
        <option value="catalog">目录</option>
        <option value="menu">菜单</option>
        <option value="button">按钮</option>
        <option value="window">弹窗</option>
        <option value="newWindow">新窗</option>
        <option value="link">链接</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">选择图标</label>
    <div class="layui-input-inline">
      <input type="text" name="icon" id="icon" placeholder="请输入图标" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">菜单名称</label>
    <div class="layui-input-inline" id="menuName1">
      <input type="text" name="name" lay-verify="required"  placeholder="请输入菜单名称" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-input-inline" style="display:none" id="menuName2">
      <select name="name1" lay-filter="buttonSelect">
        <option value="add">新增</option>
        <option value="edit">编辑</option>
        <option value="batchdel">删除</option>
        <option value="export">导出</option>
      </select>
    </div>
  </div>
  <input type="text" name="menuId" style="display:none">
  <input type="text" name="pId" style="display:none">
  <input type="text" name="toChangePid" style="display:none">
  <div class="layui-form-item">
    <label class="layui-form-label">资源地址</label>
    <div class="layui-input-inline">
      <input type="text" name="url" id="url" placeholder="请输入资源地址" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">替换参数</label>
    <div class="layui-input-inline">
      <input type="text" name="canshu" id="canshu" placeholder="请输入地址参数值" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">显示顺序</label>
    <div class="layui-input-inline">
      <input type="text" name="place"  placeholder="请输入显示顺序" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">可读字段</label>
    <div class="layui-input-inline">
      <input type="text" name="field"  placeholder="请输入可读字段" autocomplete="off" class="layui-input">
    </div>
    <i id="about1" class="layui-icon" style="margin-top:12px;float:left;display:inline-block" >&#xe60b;</i>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-inline">
      <input type="checkbox" lay-filter="switch" name="status" lay-skin="switch" lay-text="启用|禁用">
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-menu-edit-submit" id="LAY-menu-edit-submit" value="确认">
  </div>
</div>

<script src="${basePath!}/genius/layui/layui.js"></script>
<script>
  layui.config({
    base: '${basePath!}/genius/' //静态资源所在路径
    ,host:'${basePath!}'//项目访问路径
  }).extend({
    index: 'lib/index' //主入口模块
    ,edit: 'adminmanager/menu/edit'
  }).use(['index', 'edit'])
</script>
</body>
</html>